import _fetch from "api_xukaiyu/fetch";
/**
 * 申请入驻
 * @param { Object } data 请求参数
 * {
 *   isInvoice undefined
 *   mobile undefined
 *   supplyPerMonth undefined
 *   userName undefined
 *   supplyCat undefined
 *   remarks undefined
 * }
 */
export function apply(data) {
  return _fetch({
    url: "app/seller/apply",
    method: "POST",
    data: data,
    headers: {
      "Content-Type": "application/json"
    }
  });
}
/**
 * 查询统计数据
 */
export function query_statistics(data) {
  return _fetch({
    url: "app/seller/query_statistics",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 获取卖家信息
 */
export function getUserInfo(data) {
  return _fetch({
    url: "app/seller/getUserInfo",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 登录之后--修改手机号--发送老手机号验证码
 * @param { Object } data 请求参数
 * {
 *   challenge undefined
 * }
 */
export function sendOldMobileCode(data) {
  return _fetch({
    url: "app/seller/sendOldMobileCode",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 修改手机号--验证老手机号验证码
 * @param { Object } data 请求参数
 * {
 *   code undefined
 * }
 */
export function checkOldMobileCode(data) {
  return _fetch({
    url: "app/seller/checkOldMobileCode",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 修改手机号--发送新手机号验证
 * @param { Object } data 请求参数
 * {
 *   mobile undefined
 * }
 */
export function sendNewMobileCode(data) {
  return _fetch({
    url: "app/seller/sendNewMobileCode",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 修改手机号--验证新手机号验证
 * @param { Object } data 请求参数
 * {
 *   mobile undefined
 *   code undefined
 *   appType undefined
 * }
 */
export function checkNewMobileCode(data) {
  return _fetch({
    url: "app/seller/checkNewMobileCode",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 修改密码
 * @param { Object } data 请求参数
 * {
 *   code undefined
 *   newPassword undefined
 * }
 */
export function updatePassword(data) {
  return _fetch({
    url: "app/seller/updatePassword",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 验证身份信息 提现时operation为pay_pass,绑卡时operation为bind_card
 * @param { Object } data 请求参数
 * {
 *   idCard undefined
 *   userName undefined
 *   operation undefined
 * }
 */
export function checkUserIdentity(data) {
  return _fetch({
    url: "app/seller/{operation}/checkUserIdentity",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 设置提现密码-保存提现密码
 * @param { Object } data 请求参数
 * {
 *   token undefined
 *   newPassword undefined
 * }
 */
export function saveUserWithdrawPassword(data) {
  return _fetch({
    url: "app/seller/saveUserWithdrawPassword",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 实名认证
 * @param { Object } data 请求参数
 * {
 *   idCard undefined
 *   userName undefined
 *   alipayAccount undefined
 * }
 */
export function authenticateRealName(data) {
  return _fetch({
    url: "app/seller/authenticateRealName",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 查询用户提现设置信息
 */
export function query_withdraw_config(data) {
  return _fetch({
    url: "app/seller/query_withdraw_config",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 绑定提现方式发送验证码
 * @param { Object } data 请求参数
 * {
 *   mobile undefined
 * }
 */
export function withdraw_mobile_code(data) {
  return _fetch({
    url: "app/seller/withdraw_mobile_code",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 保存用户提现绑定信息
 * @param { Object } data 请求参数
 * {
 *   bankCode 银行编号
 *   bankBindMobile 手机号
 *   mobileCode 验证码
 *   withdrawType 绑定提现方式类型 0-支付宝 1-银行卡
 *   bankAccNo 银行卡号
 *   alipayAccount 支付宝账号
 *   token 验证姓名后获取的token
 * }
 */
export function save_withdraw_config(data) {
  return _fetch({
    url: "app/seller/save_withdraw_config",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 查询商家资金明细
 * @param { Object } data 请求参数
 * {
 *   uid undefined
 *   pageSize 每页记录数
 *   startTime 查询开始日期
 *   endTime 查询结束日期
 *   page 页码
 *   transSubCode 资金类型
 * }
 * @responses { Object } 返回参数
 * {
 *   total undefined
 *   queryStartTime undefined
 *   pageSize undefined
 *   page undefined
 *   queryEndTime undefined
 * }
 */
export function query_fund_logs(data) {
  return _fetch({
    url: "app/seller/query_fund_logs",
    method: "POST",
    data: data,
    headers: {
      "Content-Type": "application/json"
    }
  });
}
/**
 * 查询商家收入明细
 * @param { Object } data 请求参数
 * {
 *   uid undefined
 *   pageSize 每页记录数
 *   startTime 开始时间
 *   endTime 截止时间
 *   page 页码
 *   source 资金来源 1-出售收入、2-已退款、3-平台奖励
 * }
 * @responses { Object } 返回参数
 * {
 *   total undefined
 *   queryStartTime undefined
 *   pageSize undefined
 *   page undefined
 *   queryEndTime undefined
 * }
 */
export function query_income_orders(data) {
  return _fetch({
    url: "app/seller/query_income_orders",
    method: "POST",
    data: data,
    headers: {
      "Content-Type": "application/json"
    }
  });
}
/**
 * 查询商家累计收入明细
 */
export function query_sum_incomes(data) {
  return _fetch({
    url: "app/seller/query_sum_incomes",
    method: "POST",
    data: data,
    headers: {}
  });
}